Added finally block for future