Fix session already active warning

Addresses issue #552