Chetan,
I have some questions for you; all pertaining to the case when you do not want the document to be saved.
1. When you say the document is saved, are you using web UI? If yes then have you redefined the save event handler?
2. Are you making sure (in debug mode) that the exception and the error message is raised while saving the document?