Microsoft access crashes after closing a session

When I open a session to my remote PC with Microsoft Access running I am able to run access as if present at the PC. After I close a session with TeamViewer, Access crashes on the PC and when I open a new session of teamviewer I get a message that there is a problem with Access and I have to restart Access