Added finally statements.

Added finally statements with context.abort() to cover all exception.