Modified the logging interceptor to preserve the Exception stack trace

Moved some of the final logging code into a finally block to allow the exception (when caught) to be re-thrown, and preserve the stack trace.

Also added a gitignore file for Visual Studio.