Deinitialize

Added deinitialize method to return to uninitalized state