Amber session

The session was always 0 as the return was outside of the try-catch block.