Added on_connection_close to Application for handling the connection close callback.
Test case for twice call to finish request.