Have a look at this other superuser answer - It worked for me
OS X: How to avoid having to re-connect to network share after NAS was turned off?
I have found that my qnap interpretation of AFP is quite odd and slow in connecting. SMB works far better if you have that protocol enabled.